Allocate_empty_lowmem_regions available to non-priv domains
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 17 Aug 2005 13:33:55 +0000 (13:33 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 17 Aug 2005 13:33:55 +0000 (13:33 +0000)
and to modules. From Ross Mcilroy.

linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c
linux-2.6-xen-sparse/include/asm-xen/hypervisor.h

index bd75d0622d0d8bcda3bff2e9dbc22ff1ad2d110b..2c9f9acc3fb211191292e25cde986e5bc1629c09 100644 (file)
@@ -35,6 +35,7 @@
 #include <asm/pgtable.h>
 #include <asm-xen/hypervisor.h>
 #include <asm-xen/balloon.h>
+#include <linux/module.h>
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
 #include <linux/percpu.h>
 #include <asm/tlbflush.h>
@@ -352,7 +353,6 @@ void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order)
     balloon_unlock(flags);
 }
 
-#ifdef CONFIG_XEN_PHYSDEV_ACCESS
 
 unsigned long allocate_empty_lowmem_region(unsigned long pages)
 {
@@ -401,4 +401,4 @@ unsigned long allocate_empty_lowmem_region(unsigned long pages)
     return vstart;
 }
 
-#endif /* CONFIG_XEN_PHYSDEV_ACCESS */
+EXPORT_SYMBOL(allocate_empty_lowmem_region);
index af2dacf9ee92266ad633325b7d2b2337db29b77d..2167a737f7f198249028ecff7d9a068775472c66 100644 (file)
@@ -137,10 +137,8 @@ void xen_invlpg_mask(cpumask_t *mask, unsigned long ptr);
 void xen_create_contiguous_region(unsigned long vstart, unsigned int order);
 void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order);
 
-#ifdef CONFIG_XEN_PHYSDEV_ACCESS
 /* Allocate a contiguous empty region of low memory. Return virtual start. */
 unsigned long allocate_empty_lowmem_region(unsigned long pages);
-#endif
 
 #include <asm/hypercall.h>